package com.huiHang.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家表
 * </p>
 *
 * @author author
 * @since 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business")
@Schema(name = "Business对象", description="商家表")
public class Business implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name =  "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name =  "商家名称")
    private String name;

    @Schema(name =  "主营类目")
    private String type;

    @Schema(name =  "运营商id")
    private Long operatorId;

    @Schema(name =  "运营商名称")
    private String operatorName;

    @Schema(name =  "省")
    private String sheng;

    @Schema(name =  "省名称")
    private String shengName;

    @Schema(name =  "市")
    private String shi;

    @Schema(name =  "市名称")
    private String shiName;

    @Schema(name =  "县")
    private String xian;

    @Schema(name =  "县名称")
    private String xianName;

    @Schema(name =  "地址")
    private String address;

    @Schema(name =  "佣金比例")
    private Double scale;

    @Schema(name =  "结算周期")
    private Integer cycle;

    @Schema(name =  "营业执照")
    private String businessLicense;

    @Schema(name =  "卫生许可")
    private String healthPermit;

    @Schema(name =  "身份证正面附件")
    private String idCardFront;

    @Schema(name =  "身份证反面附件")
    private String idCardReverse;

    @Schema(name =  "手持身份证照片附件")
    private String idCardHand;

    @Schema(name =  "认证审核状态0未提交1已提交未审核2审核通过3审核不通过")
    private Integer auditStatus;

    @Schema(name =  "是否启用0启用1禁用")
    private Integer state;

    @Schema(name =  "创建人")
    private Long createUser;

    @Schema(name =  "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(name =  "最后更新人")
    private Long updateUser;

    @Schema(name =  "最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(name =  "1:正常;0:锁定;-1:删除")
    private Integer isDelete;

    @Schema(name =  "备注")
    private String remark;

    @Schema(name =  "身份证号")
    private String idNumber;

    @Schema(name =  "是否开具发票0:否,1:是")
    private Integer isInvoice;

    @Schema(name =  "app标识")
    private String appType;


}
